package onjava;

/**
 * 
 * App
 *
 * @author Lucky Yang
 */
public class App {
    static double trim(double d) {
        return ((double) Math.round(d * 1000.0)) / 100.0;
      }

    public static void main(String[] args) {
        System.out.println(trim(3.1415927D));
    }
}
